// The Vue build version to load with the `import` command (runtime-only or
// standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import 'babel-polyfill'
import Es6Promise from 'es6-promise'
import VueRouter from 'vue-router'
import App from './App'
import routes from './routes'
import 'boqii-modal'
import '@/components/toast'
import '@/directives'
import boqiiLogin from 'boqii-login'
// 重置浏览器样式.
import '@/assets/css/reast.css'
// 公共样式.
import '@/assets/css/layout.css'
// app样式.
import '@/assets/css/app.scss'
import '@/assets/css/animate.css'

Vue.use(boqiiLogin)

Es6Promise.polyfill()
Vue.use(VueRouter)
var attachFastClick = require('fastclick')
attachFastClick.attach(document.body)
// Vue.use(boqiiLogin)
const router = new VueRouter({
  routes: routes
  // mode: 'history'
})
new Vue({
  router,
  components: {
    App
  },
  template: '<App/>',
  linkActiveClass: 'active'
}).$mount('#app')
